package com.firexxx;

/**
 * @description: TODO

 * @author: zhuangzhang2
 * @date: 2020/8/29 14:43
 */
public class GenericMethodDefineMain {
    static class Base {
        <T1> void fun2(T1 t) {
        }
    }
    static class Derived extends Base {
        //不触发泛型方法的重写
        void fun2(String t) {
        }
    }
    public static void main(String[] args) {
        Base base = new Derived();
        base.fun2("1");
        base.<String>fun2("1");
    }
}
